<!DOCTYPE html>
<html>
<head>
    <title>债券记录表</title>
    <#include "/header.html">
    <link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css" rel="stylesheet">
    <script src="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#datetimepicker").datetimepicker({});
        });
    </script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("business:bondrecord:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("business:bondrecord:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("business:bondrecord:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
            <a class="btn btn-primary" @click="sendMessage"><i class="fa fa-plus"></i>&nbsp;发送短信</a>
            <a class="btn btn-primary" @click="sendMessage"><i class="fa fa-plus"></i>&nbsp;数据导入</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
					<div class="form-group">
                        <div class="col-sm-2 control-label">发债时间</div>
                        <!--<div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.createTime" placeholder="发债时间"/>
                        </div>-->

                        <div class="input-append date col-sm-10" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
                            <input class="span2" size="16" type="text" value="12-02-2012">
                            <span class="add-on"><i class="icon-remove"></i></span>
                            <span class="add-on"><i class="icon-th"></i></span>
                        </div>

                    </div>

					<div class="form-group">
                        <div class="col-sm-2 control-label">债券编码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.bondNo" placeholder="债券编码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.name" placeholder="姓名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">债券金额（万元）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.money" placeholder="债券金额（万元）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">身份证</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.idCard" placeholder="身份证"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">银行卡</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.bankCard" placeholder="银行卡"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">手机号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.mobile" placeholder="手机号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">经手人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.operator" placeholder="经手人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="bondRecord.company" placeholder="单位"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/business/bondrecord.js?_${.now?long}"></script>
</body>
</html>